package com.spike.mapper;

import com.spike.model.Dept;
import com.spike.model.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpMapper {
    List<Dept> findAll(@Param("name") String name, @Param("minSalary") String minSalary, @Param("maxSalary") String maxSalary,@Param("start") int number, @Param("size") int size);
    int addEmp(Emp emp);
    int updateById(Emp emp);

    Emp findById(int id);
    int deleteEmp(int id);

}
